import requestPlat from '@/common/requestPlat'
import Qs from 'qs';
import  util from "@/common/util.js"
// 宠物动态page
export let getActivityPage = (params) => {
	return requestPlat({
		method: 'get',
		url: `cargo/user/record_activity/page/${params.page}/${params.limit}`,
		params
	})
}


// 获取宠物动态详情
export let getActivityDetail = (params) => {
	return requestPlat({
		method: 'get',
		url: `cargo/user/record_activity/detail`,
		params,
	})
}


// 获取宠物动态列表
export let getActivityList = (params) => {
	return requestPlat({
		method: 'get',
		url: `cargo/user/record_activity/list`,
		params,
	})
}


// 宠物动态新增
export let getActivityAdd = (data) => {
	return requestPlat({
		method: 'post',
		url: `cargo/user/record_activity/add`,
		headers: {
			"Content-Type": 'application/json'
		},
		data:util.fuseTeamData(data),
		loadData: true
	})
}

// 宠物动态编辑
export let getActivityEdit = (data) => {
	return requestPlat({
		method: 'post',
		url: `cargo/user/record_activity/edit`,
		headers: {
			"Content-Type": 'application/json'
		},
		data,
		loadData: true
	})
}


// 宠物动态删除
export let getActivityDel = (data) => {
	return requestPlat({
		method: 'post',
		url: `cargo/user/record_activity/del`,
		data:Qs.stringify(data),
		loadData: true
	})
}



